import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
  {
    path:"/",
    redirect:"/xiaoqu"
  },
  {
    path: "/xiaoqu",
    component:()=>import("../components/XiaoQuComponent")
  },
    //帮买取
  {
    path: "/help/mendian", //仅仅是路由名字长了一点
    component:()=>import("../components/help/MenDianComponent")
  },
  {
    path: "/help/yizhan",
    component:()=>import("../components/help/YiZhanComponent")
  },
  {
    path: "/help/shangpin",
    component:()=>import("../components/help/ShangPinComponent")
  },
  {
    path: "/help/dingdan",
    component:()=>import("../components/help/DingDanComponent")
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
